import Vue from 'vue'
import App from './App.vue'
import commoncss from './assets/css/common.css'
import commonjs from './assets/js/common.js'

import {
    Message,
    MessageBox,
    Loading
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from './router';
import store from './store/index.js';
import http from './config/http.js';
import ajax from './config/ajax.js';
import apis from './config/api.js';

import hasPermission from './utils/hasPermission.js'; // 权限设置

import tabRouter from './router/tabRouter.js'
import commonTable from './components/commonTable.vue'

// 菜单
Vue.use(tabRouter);
// 判断权限
Vue.use(hasPermission);
Vue.use(Loading.directive);
// 表格
Vue.component('commonTable', commonTable);
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$message = Message;


Vue.prototype.$http = http;
Vue.prototype.$ajax = ajax;
Vue.prototype.$apis = apis;


// 阻止启动生产消息
Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')